//
//  TS_HomeViewController.swift
//  todaySwift
//
//  Created by ChokWah on 2018/3/5.
//  Copyright © 2018年 ChokWah. All rights reserved.
//

import UIKit

class TS_HomeViewController: UIViewController {
    // 标题数据表
    fileprivate let newsTitleTable = NewsTitleTable()
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.blue
        NetWorkTool.loadHomeNewsTitleData { (titles) in
             // 把数据存入数据库
            self.newsTitleTable.insert(titles)
        }
    }
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */
}
